/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.io.Serializable;
/*    */ import net.minecraft.client.model.PositionTextureVertex;
/*    */ import net.minecraft.client.model.TexturedQuad;
/*    */ import net.minecraft.client.renderer.BufferBuilder;
/*    */ import net.minecraft.client.renderer.Tessellator;
/*    */ import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
/*    */ import net.minecraft.util.math.Vec3d;
/*    */ import net.minecraftforge.fml.relauncher.Side;
/*    */ import net.minecraftforge.fml.relauncher.SideOnly;
/*    */ 
/*    */ public class on
/*    */   extends TexturedQuad implements Serializable {
/*    */   private static final long q = -9196105177023478504L;
/*    */   public String g;
/*    */   
/*    */   public on(String str, PositionTextureVertex[] arrayOfPositionTextureVertex, float f1, float f2, float f3, float f4, float f5, float f6) {
/* 19 */     super(arrayOfPositionTextureVertex);
/* 20 */     this.g = str;
/* 21 */     if (f3 > f5) {
/* 22 */       f3 = f5;
/*    */     }
/* 24 */     if (f4 > f6) {
/* 25 */       f4 = f6;
/*    */     }
/*    */ 
/*    */     
/* 29 */     float f7 = 0.0F / f5;
/* 30 */     float f8 = 0.0F / f6;
/* 31 */     arrayOfPositionTextureVertex[0] = arrayOfPositionTextureVertex[0].func_78240_a(f3 / f5 - f7, f2 / f6 + f8);
/* 32 */     arrayOfPositionTextureVertex[1] = arrayOfPositionTextureVertex[1].func_78240_a(f1 / f5 + f7, f2 / f6 + f8);
/* 33 */     arrayOfPositionTextureVertex[2] = arrayOfPositionTextureVertex[2].func_78240_a(f1 / f5 + f7, f4 / f6 - f8);
/* 34 */     arrayOfPositionTextureVertex[3] = arrayOfPositionTextureVertex[3].func_78240_a(f3 / f5 - f7, f4 / f6 - f8);
/*    */   }
/*    */   
/*    */   @SideOnly(Side.CLIENT)
/*    */   public void func_178765_a(BufferBuilder bufferBuilder, float f) {
/* 39 */     Vec3d vec3d1 = (this.field_78239_a[1]).field_78243_a.func_72444_a((this.field_78239_a[0]).field_78243_a);
/* 40 */     Vec3d vec3d2 = (this.field_78239_a[1]).field_78243_a.func_72444_a((this.field_78239_a[2]).field_78243_a);
/* 41 */     Vec3d vec3d3 = vec3d2.func_72431_c(vec3d1).func_72432_b();
/* 42 */     float f1 = (float)vec3d3.field_72450_a;
/* 43 */     float f2 = (float)vec3d3.field_72448_b;
/* 44 */     float f3 = (float)vec3d3.field_72449_c;
/*    */     
/* 46 */     bufferBuilder.func_181668_a(7, DefaultVertexFormats.field_181703_c);
/*    */ 
/*    */     
/* 49 */     for (int i = 0; i < 4; i++) {
/* 50 */       PositionTextureVertex positionTextureVertex = this.field_78239_a[i];
/*    */       
/* 52 */       bufferBuilder.func_181662_b(positionTextureVertex.field_78243_a.field_72450_a * f, positionTextureVertex.field_78243_a.field_72448_b * f, positionTextureVertex.field_78243_a.field_72449_c * f)
/*    */ 
/*    */ 
/*    */ 
/*    */         
/* 57 */         .func_187315_a(positionTextureVertex.field_78241_b, positionTextureVertex.field_78242_c)
/* 58 */         .func_181663_c(f1, f2, f3).func_181675_d();
/*    */     } 
/*    */     
/* 61 */     Tessellator.func_178181_a().func_78381_a();
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\on.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */